package org.absolutezero.client.events;

import org.absolutezero.shared.ShelfProxy;

import com.google.gwt.event.shared.GwtEvent;

public class SaveForeignShelfEvent extends GwtEvent<SaveForeignShelfEventHandler> {

	public static Type<SaveForeignShelfEventHandler> TYPE = new Type<SaveForeignShelfEventHandler>();
	
	private ShelfProxy shelf;
	
	public SaveForeignShelfEvent(ShelfProxy shelf){
		this.shelf = shelf;
	}
	
	public ShelfProxy getShelf(){
		return shelf;
	}
	
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<SaveForeignShelfEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(SaveForeignShelfEventHandler handler) {
		handler.onEvent(this);
	}

}
